﻿@model G15_Agent.Models.DanhSachNCC

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "Thêm Nhà cung cấp mới không thành công, vui lòng thử lại")   
<fieldset> 
       

        <div class="editor-label">
            @Html.LabelFor(model => model.TenNCC, "Tên NCC")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TenNCC)
            @Html.ValidationMessageFor(model => model.TenNCC)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TLGiaNCC,"Tỷ lệ giá nhà cung cấp")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TLGiaNCC)
            @Html.ValidationMessageFor(model => model.TLGiaNCC)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TLGiaKH,"Tỷ lệ giá khách hàng")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TLGiaKH)
            @Html.ValidationMessageFor(model => model.TLGiaKH)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DiaChiWS,"Địa chỉ WS")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DiaChiWS)
            @Html.ValidationMessageFor(model => model.DiaChiWS)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Username)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Username)
            @Html.ValidationMessageFor(model => model.Username)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Pass)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Pass)
            @Html.ValidationMessageFor(model => model.Pass)
        </div> 
        
        <div class="editor-label">
            @Html.LabelFor(model => model.LoaiNCC, "Loại NCC")
        </div>
        <div class="editor-field">
            @Html.DropDownList("LoaiNCC", String.Empty)
            @Html.ValidationMessageFor(model => model.LoaiNCC)
        </div> 
                      


        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
    
    <fieldset>
        
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>